<template>
  <view class="container">
    <!-- 提示条 -->
    <view class="tip-bar" @click="gotoPage('/pages/agent/tourist/tourist')">
      <text class="tip-text">游客会员未直接展示，点击可查看</text>
      <text class="arrow">&#8250;</text>
    </view>
	<scroll-view scroll-y class="list">
	  <view class="list-item" v-for="(user, index) in users" :key="index" @click="gotoPage('/pages/agent/placement/placement')">
	    <view class="avatar"></view>
	    <view class="info">
	      <view class="name">{{ user.name }}</view>
	      <view class="details">UID: {{ user.uid }}  TEL: {{ user.phone }}</view>
	    </view>
	    <view class="arrow">&gt;</view>
	  </view>
	</scroll-view>

    <!-- 空状态 -->
    <view class="empty-state">
      <text class="empty-text">~ 暂无待安置会员 ~</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
		users: [
		  { name: '张青', uid: 'mz448020', phone: '15823399939' },
		  { name: '张青1', uid: 'mz937088', phone: '15823399939' }
		],
	};
  },
};
</script>

<style scoped>
/* 页面容器 */
.container {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding: 0rpx;
}

/* 头部样式 */
.header {
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 18px;
  font-weight: bold;
}

/* 提示条 */
.tip-bar {
  background-color: #f5a583;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.tip-text {
  font-size: 14px;
}

.arrow {
  font-size: 20px;
  font-weight: bold;
}

/* 空状态 */
.empty-state {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-text {
  font-size: 16px;
  color: #aaa;
  font-style: italic;
}
.list {
  flex: 1;
  padding: 10px;
}
.list-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}
.avatar {
  width: 50px;
  height: 50px;
  background-color: #e5e5e5;
  border-radius: 50%;
  margin-right: 10px;
}
.info {
  flex: 1;
}
.name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.details {
  font-size: 14px;
  color: #666;
}
.arrow {
  font-size: 18px;
  color: #999;
  margin-right: 30px;
}
</style>
